package com.milk.service;

import com.milk.dto.CommonPageQueryDTO;
import com.milk.dto.OrderDTO;
import com.milk.dto.ShoppingCarDTO;
import com.milk.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.milk.result.PageResult;
import com.milk.vo.OrderDetailVO;
import com.milk.vo.OrderVO;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
public interface IOrdersService extends IService<Orders> {

    OrderVO settle();

    Integer placeOrder(OrderDTO dto);

    List<OrderDetailVO> selectTodayOrder();

    List<OrderDetailVO> selectHistory();

    OrderDetailVO selectByOrderId(Long id);

    OrderVO buyOne(ShoppingCarDTO dto);

    PageResult pageQuery(CommonPageQueryDTO dto);

    void upddateStatus(Orders orders);

    Long selectMaking();
}
